home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 55375 / 55375.xpi / chrome / chromeFiles / content / btCustomizeToolbarOverlay.xul < prev    next >
Extensible Markup Language  |  2009-11-15  |  2KB  |  36 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE btClient SYSTEM "../locale/btClient.dtd">
  3. <overlay
  4.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  5.   <script type="application/x-javascript;version=1.7" src="btClient.js" />
  6.   <script type="application/x-javascript;version=1.7">
  7.   (function (brandObject) {
  8.     var btPrefBranch = Components.classes["@mozilla.org/preferences-service;1"]
  9.                                      .getService(Components.interfaces.nsIPrefService)
  10.                                      .getBranch("extensions.brandthunder.");
  11.     /* If full_theme isn't there at all, it's first run */
  12.     var bigBoom = btPrefBranch.getBoolPref("bigBoom");
  13.     if (bigBoom) {
  14.       var currentBoom = btPrefBranch.getCharPref("currentBoom");
  15.       var boomClient;
  16.       for (let i in BrandThunder.clients) {
  17.         for (let j in BrandThunder.clients[i].booms) {
  18.           if (j == currentBoom) {
  19.             boomClient = i;
  20.             break;
  21.           }
  22.         }
  23.       }
  24.       if (document.getElementById("CustomizeToolbarSheet")) {
  25.         document.getElementById("CustomizeToolbarSheet").setAttribute("btBoom", currentBoom);
  26.         document.getElementById("CustomizeToolbarSheet").setAttribute("btClient", boomClient);
  27.       }
  28.       if (document.getElementById("CustomizeToolbarWindow")) {
  29.         document.getElementById("CustomizeToolbarWindow").setAttribute("btBoom", currentBoom);
  30.         document.getElementById("CustomizeToolbarWindow").setAttribute("btClient", boomClient);
  31.       }
  32.     }
  33.   })(BrandThunder.clients.&btClient;);
  34.   </script>
  35. </overlay>
  36.